<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
    <title>Document</title>
    <link rel="stylesheet" href="waitfor.css"/>
    <script src="../unis/jquery-1.8.3.min.js"></script>
</head>
<body>
<div class="content">
    <img src="../imgs/logoutBg.png" alt=""/>
</div>
<div class="main">
    <div class="top">
        <div class="left">
            <img src="../imgs/QQ图片20160918214224.png" alt=""/>
            <div style="font-size: 0.7rem;color: #ffffff;padding-left: 10px;">
                <p>ts</p>
                <p>1000</p>
            </div>
        </div>
        <div class="center">
            <p>
                <img style="" src="../imgs/for_center_bg.png" alt=""/>
            </p>
        </div>
        <div class="right">
            <img src="../imgs/QQ图片20160918214224.png" alt=""/>
            <div style="font-size: 0.7rem;color: #ffffff;padding-left: 10px;">
                <p>ts</p>
                <p>1000</p>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="footer_center" style="position: relative">
            <img style="width: 7.5%" src="../imgs/QQ图片20160918214224.png" alt=""/>
            <div style="font-size: 0.7rem;color: #ffffff;padding-left: 10px; position: absolute;left:54%;top:10%">
                <p>ts</p>
                <p>1000</p>
            </div>
        </div>

    </div>
    <div class="remove">
        <img src="../imgs/btn_jsfz.png" alt=""/>
    </div>
</div>
<div class="RoomNumber">
    <p style="color: #01fcd0">09 11</p>
    <p>房间号</p>
    <p>673377</p>
    <p>卡五星</p>
    <p>襄阳玩法</p>
</div>
<div class="parentAlert" style="display: block">
    <ul class="addPiao">
        <li data="1">
            <img src="../imgs/p.png" alt=""/>
        </li>
        <li>
            <img src="../imgs/p1.png" alt=""/>
        </li>
        <li>
            <img src="../imgs/p2.png" alt=""/>
        </li>
    </ul>
</div>
</body>
<script>
    var wsServer ='ws://192.168.0.199:9502';  //地址
    var ws = new WebSocket(wsServer); //监听链接
    ws.onopen = function (evt) {  //测试链接成功或失败
        //websocket.readyState 属性：
        switch (ws.readyState) {
            case 0: console.log('通信服务未打开');break;
            case 1: console.log('连接成功');break;
            case 2: console.log('通信端口关闭，无法连接');break;
            case 3: console.log('通信服务已关闭');break;
        }
        ws.send('s');
    };

    $('.parentAlert').find('li').on('click',function(){
            var data = $(this).attr('data')

    })
</script>
</html>